package main

import (
	"gitee.com/youbeiwuhuan/gin-practice/gin-fizz/tools/fizzs"
	"gitee.com/youbeiwuhuan/gin-practice/gin-fizz/web"
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	engine := gin.New()
	fizzCfg := fizzs.FizzConfig{}
	fizz := fizzs.NewFizz(fizzCfg, engine)

	web.AddRouter(fizz)

	srv := &http.Server{
		Addr:    ":4242",
		Handler: fizz,
	}
	srv.ListenAndServe()
}
